package com.etung.iot.demo.core;

import com.github.pagehelper.PageInfo;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class SimplePageInfo<T> implements Serializable {
    Long total;
    private List<T> list;

    public SimplePageInfo(PageInfo<T> pageInfo) {
        this.total = pageInfo.getTotal();
        this.list = pageInfo.getList();
    }
}
